home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / graphics / sviewiv / arexx-scripts / loadrequest.rx < prev    next >
Text File  |  1999-11-30  |  810b  |  48 lines

  1. /*
  2.    $VER: LoadRequest.rx V9.00 (15.8.99)
  3.    © 1993-99 by Andreas R. Kleinert
  4.  
  5.    This script demonstrates some kind of remote control of SViewII
  6.    by using SViewIV's ARexxPort.
  7.  
  8. */
  9.  
  10. address command
  11.  
  12. SViewIV "-INSTALL_APPMENU=FALSE -INSTALL_APPICON=FALSE"
  13.  
  14. say ""
  15. say "ARexx: SViewIV has been started : Waiting a moment..."
  16.  
  17. wait 5
  18.  
  19. OPTIONS RESULTS
  20. SIGNAL ON ERROR
  21. SVIIPORT = 'SViewII.rx'
  22. SVNGPORT = 'SViewNG.rx'
  23. SVPORT   = 'SuperView.rx'
  24.  
  25. IF ~SHOW('P',SVPORT) THEN SVPORT = SVNGPORT
  26. IF ~SHOW('P',SVPORT) THEN SVPORT = SVIIPORT
  27. IF ~SHOW('P',SVPORT) THEN DO
  28.   say "Could not locate ARexx port of SViewII !"
  29.   CALL ErrorOut 0
  30. END
  31.  
  32. ADDRESS VALUE SVPORT
  33.  
  34. 'OPEN_GUI'
  35. 'REQUEST'
  36.  
  37. CALL ErrorOut 0
  38.  
  39.  
  40. /* Errorout procedure ----------------------- */
  41.  
  42. ErrorOut:
  43.         PARSE ARG ExitCode
  44.  
  45.         EXIT ExitCode
  46.  
  47.   END
  48.